package com.atguigu.classes.preconditions;

/**
 * @program: myIDEA
 * @description: 遍历英文字母
 * @author: Mr.zjx
 * create: 2021-07-06-14-28
 **/
public class Test16 {
    public static void main(String[] args) {
        char[] ch = new char[26];
        //定义保存的ASCII值
        int asi = 97;
        for (int i = 0;i <ch.length;i++){
            ch[i] = (char) asi;
            asi++;
        }
        for (int i = 0;i <ch.length;i++){
            System.out.println(ch[i] + "->" + (char)(ch[i]-32));
        }
    }
}
